<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="<c:url value='/css/style.css'/>" rel="stylesheet"
	type="text/css" />
<fmt:setBundle basename="messages" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title" /></title>
</head>
<body>
	<!--<fmt:message key="label.leave" />
	<form action="PersonalLeaveHistoryServlet.java" method="post"> 

	-->
		 <table border = "1" class="borderAll">
            <tr>
            	<th>LeaveId</th>
                <th>EmployeeID</th>
                <th>First Name</th>                
                <th>SurName</th>
                <th>LeaveType ID </th>
                <th>StartDate</th>
                <th>End Date</th>
                <th>Leave Period</th>
                <th>Reason</th>
                <th>WorkDissmenition</th>
                <th>ContactDetail</th>
                <th>Status</th>
                <th>Created By</th> 
                 <th>Created Date</th>
                 <th>Modified By</th>
              	 <th>Modified Date</th>
            </tr>      
		
                <c:forEach var="leave" items="${leave}" varStatus="idx">
                <tr>
                    <td class="nowrap">${idx.index+1 }</td> 
                    <td class="nowrap">${leave.employeeID}</td>
                    <td class="nowrap">${leave.firstName}</td>
                    <td class="nowrap">${leave.surName}</td>
                    <td class="nowrap">${leave.leaveTypeID}</td>
                    <td class="nowrap">${leave.startDate}</td>
                    <td class="nowrap">${leave.endDate}</td>
                    <td class="nowrap">${leave.leavePeriod}</td>
                    <td class="nowrap">${leave.reason}</td>
                    <td class="nowrap">${leave.workdissmenition}</td>
                    <td class="nowrap">${leave.contactDetail}</td>
                    <td class="nowrap">${leave.status}</td>
                    <td class="nowrap">${leave.comment}</td>
                    <td class="nowrap">${leave.createBy}</td>
                    <td class="nowrap">${leave.createDate}</td>
                    <td class="nowrap">${leave.modifiedBy}</td>
                    <td class="nowrap">${leave.modifiedDate}</td>
                    <td class="nowrap">
                    </tr>
                       </c:forEach>
</table>
</body>
</html>